<template>
	<div class="">

		<div class="zzc" ref="zzc" v-show="showzzc" @click="close"></div>

		<div class="container">
			<div class="title">故障类型</div>

			<div class="search_box">
				<input type="text" autocomplete="off" v-model="word" class="form-control search_inp"
					placeholder="这里输入关键词">
				<div class="sea_btn sear_btns" @click="page=1;naes=word;getlist(pid)">
					<img src="@assets/images/search.png" alt="">
					查询
				</div>
				<div class="add_btn sear_btns" @click="openalert('add')" v-if="$permissions.indexOf(39)  != -1">
					<img src="@assets/images/add.png" alt="">
					新增
				</div>
				<div class="del_btn sear_btns" @click="delopen(0)" v-if="$permissions.indexOf(40)  != -1">
					<img src="@assets/images/del.png" alt="">
					删除
				</div>
				<div class="down_btn sear_btns" @click="openeng"
					v-if="list.length > 0 && list[0].parentId!=0 && $permissions.indexOf(41)  != -1">
					<img src="@assets/images/4.png" alt="">
					设置负责人
				</div>
				<div class="del_btn sear_btns" @click="delopen(1)"
					v-if="list.length > 0 && list[0].parentId!=0 && $permissions.indexOf(41)  != -1">
					<img src="@assets/images/del.png" alt="">
					删除负责人
				</div>
			</div>
			<div class="table-responsive mt-20">
				<h2 class="tcent" v-if="list.length ==0">暂时没有数据</h2>
				<table class="table table-hover" v-else>
					<tr>
						<th style="width: 50px;">
							<input type="checkbox" @change="changeall" v-model="choseall" name="all" id="aaa"><label
								for="aaa"></label>
						</th>

						<th>分类名</th>
						<th>备注</th>
						<th v-if="list.length > 0&&list[0].parentId!=0">路径</th>
						<th v-if="list.length > 0&&list[0].parentId!=0">负责人</th>
						<th v-if="list.length > 0&&list[0].parentId!=0">绩效分</th>
						<th v-if="list.length > 0&&list[0].parentId!=0">最低绩效分</th>
						<th v-if="list.length > 0&&list[0].parentId!=0">处理时长（小时）</th>
						<th class="tcent" v-if="$permissions.indexOf(41)  != -1">操作</th>
					</tr>

					<tr v-for="item,index in list">
						<td style="width: 50px;">
							<input type="checkbox" v-model="item.chosesf" @change="chosechange" name="chose"
								:id="item.id"><label :for="item.id"></label>
						</td>
						<td>{{item.name}}</td>
						<td>{{item.remark}}</td>
						<td v-if="item.parentId!=0">{{item.treeLoad}}</td>
						<td v-if="item.parentId!=0">{{item.engineerName}}</td>
						<td v-if="item.parentId!=0">{{item.score}}</td>
						<td v-if="item.parentId!=0">{{item.minScore}}</td>
						<td v-if="item.parentId!=0">{{item.dealTime}}</td>
						<td class="tcent" v-if="$permissions.indexOf(41)  != -1">
							<div class="edit" @click="openalert('edit',index)">修改</div>
						</td>
					</tr>


				</table>

				<div class="page_box">
					<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
						:current-page="page" :page-sizes="[10, 30, 60, 100]" :page-size="limit"
						layout="total, sizes, prev, pager, next, jumper" :total="inglen">
					</el-pagination>
				</div>

			</div>

		</div>
		<!--设置负责人-->
		<div :class="alert_show2?'modal in fade':'modal fade'" tabindex="-1" role="dialog"
			:style="alert_show2?'display: block;z-index:199':''">
			<div class="cent">
				<div class="modal-dialog" role="document" style="width: 97%;">
					<div class="modal-content">
						<div class="modal-header tit">
							<em></em>设置负责人
							<div class="right" @click="closepeo">
								<button type="button" class="close" data-dismiss="modal" aria-label="Close"
									style="line-height: normal;"><span class="iconfont icon-cha"
										aria-hidden="true"></span> </button>
							</div>
						</div>
						<!--表单-->
						<div class="modal-body h100">
							<div class="search_box">
								<input type="text" autocomplete="off" v-model="word2" class="form-control search_inp"
									placeholder="这里输入关键词">
								<div class="select_box">
									<div class="form-control" id="select"
										@click="options_show=!options_show;showzzc=!showzzc">
										<div :style="typename=='选择小组'?'color: #999;':''">{{typename}} </div>
										<img src="../../../assets/images/down.png" alt="">
									</div>
									<div class="options" v-if="options_show">
										<div class="option" style="color: #999;">选择小组</div>
										<div class="option" @click="selectit('all')">全部</div>
										<div class="option" @click="selectit(index)" v-for="item,index in types">
											{{item.name}}
										</div>
									</div>
								</div>
								<div class="sea_btn sear_btns" @click="page2=1;naes2=word2;typeids=typeid;getenglist()">
									<img src="@assets/images/search.png" alt="">
									查询
								</div>
							</div>
							<div class="table-responsive mt-20" style="height: calc(100vh - 231px);">
								<h2 class="tcent" v-if="englist.length ==0">暂时没有数据</h2>
								<table class="table table-hover" v-else>
									<tr>
										<th style="width: 50px;">

										</th>
										<!-- <th style="text-align: center;width: 80px;padding-right: 30px;">序号</th> -->
										<th style="width: 150px;">账号</th>
										<th>姓名</th>
										<th>所属科室</th>
										<th>所属小组</th>
									</tr>

									<tr v-for="item,index in englist">
										<td style="width: 50px;">
											<input type="radio" :checked="item.chosesf" @change="chosechange2(index)"
												name="choses" :id="item.id"><label :for="item.id"></label>
										</td>
										<!-- <td style="text-align: center;width: 80px;padding-right: 30px;">{{item.id}}</td> -->
										<td style="width: 150px;">{{item.user_name}}</td>
										<td>{{item.real_name}}</td>
										<td>{{item.dept_name}}</td>
										<td>{{item.group_name}}</td>

									</tr>

								</table>

								<div class="page_box">
									<el-pagination @size-change="handleSizeChange2"
										@current-change="handleCurrentChange2" :current-page="page2"
										:page-sizes="[10, 30, 60, 100]" :page-size="limit2"
										layout="total, sizes, prev, pager, next, jumper" :total="inglen2">
									</el-pagination>
								</div>
								<div class="buttons" style="margin-top: 30px;">
									<div class="sure" @click="setpeo">保存</div>
									<div class="closebtn" @click="closepeo">取消</div>
								</div>

							</div>


						</div>

					</div>

				</div>
			</div>
		</div>
		<!-- </div> -->

		<div class="alzzc" v-if="delalert2">
			<div class="del_alert">
				<div class="modal-header tit" style="text-align: left;">
					<em></em>信息
					<div class="right" @click="delalert2=false">
						<button type="button" class="close" data-dismiss="modal" aria-label="Close"
							style="line-height: normal;"><span class="iconfont icon-cha" aria-hidden="true"></span>
						</button>
					</div>
				</div>
				<div class="alert_info">确认要删除选中的<span>{{delnum}}</span>条负责人吗？</div>
				<div class="alert_btns">
					<div class="alert_sure" @click="deleng">确认</div>
					<div class="alert_close" @click="delalert2=false">取消</div>
				</div>
			</div>
		</div>

		<div class="alzzc" v-if="delalert">
			<div class="del_alert">
				<div class="modal-header tit" style="text-align: left;">
					<em></em>信息
					<div class="right" @click="delalert=false">
						<button type="button" class="close" data-dismiss="modal" aria-label="Close"
							style="line-height: normal;"><span class="iconfont icon-cha" aria-hidden="true"></span>
						</button>
					</div>
				</div>
				<div class="alert_info">确认要删除选中的<span>{{delnum}}</span>条数据吗？</div>
				<div class="alert_btns">
					<div class="alert_sure" @click="del">确认</div>
					<div class="alert_close" @click="delalert=false">取消</div>
				</div>
			</div>
		</div>

		<!--故障原因弹窗-->
		<div :class="alert_show?'modal in fade':'modal fade'" tabindex="-1" role="dialog" id="keshi"
			:style="alert_show?'display: block;z-index:199':''">
			<div class="cent w600"
				:style="'justify-content: center;width: 544px;'+(list.length > 0 && list[0].parentId!=0)?'height: 510px;margin: calc(50vh - 272px) auto;':'height: 320px;'">
				<div class="modal-dialog" role="document">
					<div class="modal-content">
						<div class="modal-header tit">
							<em></em>故障类型
							<div class="right" @click="alert_show=false">
								<button type="button" class="close" data-dismiss="modal" aria-label="Close"
									style="line-height: normal;"><span class="iconfont icon-cha"
										aria-hidden="true"></span>
								</button>
							</div>
						</div>
						<!--表单-->
						<div class="modal-body h100 search-cont"
							:style="list.length > 0 && list[0].parentId!=0?'height: 380px;':'height: 200px;'">
							<div class="line">
								<div class="line_title">上级：</div>
								<div class="prevli">{{prentname}}</div>
							</div>
							<div class="line">
								<div class="line_title"><span>*</span>名称：</div>
								<input type="text" autocomplete="off" v-model="name" class="form-control"
									placeholder="此处输入故障名称">
							</div>
							<div class="line" v-if="list.length > 0 && list[0].parentId!=0">
								<div class="line_title">处理时长：</div>
								<div
									style="display: flex;width: 360px;justify-content: space-between;align-items: center;">
									<input type="text" autocomplete="off" v-model="hours" class="form-control"
										placeholder="此处输入处理时长" style="width: 280px;">
									<div id="">
										小时
									</div>
								</div>

							</div>
							<div class="line" v-if="list.length > 0 && list[0].parentId!=0">
								<div class="line_title"><span>*</span>绩效分：</div>
								<input type="text" autocomplete="off" v-model="sorts" class="form-control"
									placeholder="此处输入绩效分">
							</div>
							<div class="line" v-if="list.length > 0 && list[0].parentId!=0">
								<div class="line_title"><span>*</span>最低绩效分：</div>
								<input type="text" autocomplete="off" v-model="lowhours" class="form-control"
									placeholder="此处输入最低绩效分">
							</div>
							<div class="zhu" v-if="list.length > 0 && list[0].parentId!=0" style="margin-left: 175px;">
								注：超时完成 或 非当天完成工单 获得绩效分</div>
							<div class="line">
								<div class="line_title">备注：</div>
								<input type="text" autocomplete="off" v-model="remark" class="form-control"
									placeholder="此处输入备注">
							</div>


						</div>
						<div class="buttons">
							<div class="sure" @click="sure">保存</div>
							<div class="closebtn" @click="alert_show=false">取消</div>
						</div>
					</div>
				</div>
			</div>
		</div>

		<div class="loading-content" v-if="showloading">
			<div class="loading-spinner">
				<svg viewBox="25 25 50 50" class="circular">
					<circle cx="50" cy="50" r="20" fill="none" class="path"></circle>
				</svg>
			</div>
			<div class="loading-text">加载中...</div>
		</div>
	</div>
</template>

<script type="text/babel">
	import $ from 'jquery'

	export default {
		props: ['searchVal','searchname'],
		name: "",
		data() {
			return {
				hours:"",
				sorts:0,
				lowhours:0,
				showadd: false,
				showzzc: false,
				alert_show: false,
				alert_show2: false,
				options_show: false,
				delalert: false,
				delalert2: false,
				choseall:false,
				typename : '选择小组',
				page: 1,
				page2: 1,
				list: [],
				englist: [],
				types: [],
				inglen: 0,
				limit: 10,
				num: 1,
				inglen2: 0,
				limit2: 10,
				num2: 1,
				type:0,
				delnum:0,
				showloading: false,
				word:"",
				naes:"",
				word2:"",
				naes2:"",
				name:"",
				remark:"",
				prentname:"故障分类",
				typeid:'0',
				typeids:'0',
				ids:""
			}
		},
		components: {},

		
		watch: {
		      searchVal: function (val) {       
		       console.log(val);   // 接收父组件的值
			   this.pid = val
			   this.word=''
			   this.naes=''
			   this.page=1
			   this.getlist(val)
		      },
			  searchname: function (val2) {
			   console.log(val2);   // 接收父组件的值
			   this.prentname=val2
			  }
		    },
		created() {
			this.gettype();
			this.getlist();
			this.getenglist();
		},

		mounted() {

		},

		methods: {
			closepeo(){
				this.alert_show2=false
				this.showzzc=false
				this.$refs.zzc.style.left='250px'
				// for (var i = 0; i < this.englist.length; i++) {
				// 	this.englist[i].chosesf = false
				// }
				this.word2=''
				this.naes2=''
			   this.typeid=''
			   this.typeids=''
			   this.typename = '选择小组',
				this.page2=1
				this.getenglist()
				this.$forceUpdate()
			},
			
			openeng(){
				var ids=''
				for (var i = 0; i < this.list.length; i++) {
					if(this.list[i].chosesf==true){
						ids = ids+''+this.list[i].id+','
					}
				}
				this.ids = ids.substring(0,ids.length-1)
				if(this.ids==''){
					this.$Toast('暂无选中');
					return
				}
				this.alert_show2=true
				this.showzzc=true
				console.log()
				this.$refs.zzc.style.left='250px'
			},
			setpeo(){
				var engineerId = ''
				for (var i = 0; i < this.englist.length; i++) {
					if(this.englist[i].chosesf==true){
						engineerId = this.englist[i].id
					}
				}
				if(engineerId==''){
					this.$Toast('请选择负责人');
					return
				}
				var param = {
					ids:this.ids,
					engineerId
				}
				// return
				var that = this
				this.$http.post(this.$url + '/fault/type/bindingEngineer', this.$qs.stringify(param))
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.$Toast(response.data.msg);
					that.getlist(that.pid)
					that.alert_show2=false
					that.word2=''
									that.naes2=''
					that.typeid=''
					that.typeids=''
					that.typename = '选择小组',
									that.page2=1
									that.getenglist()
					that.$forceUpdate()
					that.$emit('getnew', '123');
					})
					.catch(function(error) {
						console.log(error);
						that.$Toast('网络拥堵，刷新一下');
					});
			},
			// 获取分组
			gettype() {
				this.showloading = true
			
				var that = this
				this.$http.get(this.$url + '/engineer/selectGroup')
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.types = response.data.data
						that.showloading = false
					})
					.catch(function(error) {
						console.log(error);
						
						that.$Toast('网络拥堵，刷新一下');
					});
			
			},
			selectit(index){
				if(index=='all'){
					this.typename = '全部'
					this.typeid = ''
				}else{
					this.typename = this.types[index].name
					this.typeid = this.types[index].id
				}
				this.options_show=false
				this.showzzc=false
			},
			getenglist() {
				this.showloading = true
				this.choseall = false
			
			
				var that = this
				var zuid = this.typeids==0?'':this.typeids
				var url = encodeURI(this.$url + '/engineer/select?page='+this.page2+'&limit='+this.limit2+'&userName='+this.naes2+'&groupId='+zuid)
				this.$http.get(url)
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.englist = response.data.data
						for (var i = 0; i < that.englist.length; i++) {
							that.englist[i].chosesf = false
						}
						that.inglen2 = response.data.count
						if (that.inglen2 > that.limit2) {
							that.num2 = Math.ceil(that.inglen2 / that.limit2)
						} else {
							that.num2 = 1
						}
						that.showloading = false
					})
					.catch(function(error) {
						console.log(error);
						
						that.$Toast('网络拥堵，刷新一下');
					});
			
			},
			delopen(index){
				
				var ids=''
				var num = 0
				for (var i = 0; i < this.list.length; i++) {
					if(this.list[i].chosesf==true){
						ids = ids+''+this.list[i].id+','
						num++
					}
				}
				this.ids = ids.substring(0,ids.length-1)
				if(this.ids==''){
					this.$Toast('暂无选中');
					return
				}
				this.delnum = num
				
					console.log(index)
				if(index==1){
					this.delalert2=true
				}else{
					this.delalert=true
				}
								
			},
			// 删除
			deleng(){
				this.delalert=false
				var param = {
					ids:this.ids
				}
				var that = this
				this.$http.post(this.$url + '/fault/type/deleteBindingEngineer', this.$qs.stringify(param))
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.$Toast(response.data.msg);
						that.delalert2=false
					that.getlist(that.pid)
					that.$emit('getnew', '123');
					})
					.catch(function(error) {
						console.log(error);
						that.$Toast('网络拥堵，刷新一下');
					});
			},
			// 删除
			del(){
				this.delalert=false
				var param = {
					ids:this.ids
				}
				var that = this
				this.$http.post(this.$url + '/fault/type/delete', this.$qs.stringify(param))
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.$Toast(response.data.msg);
					that.getlist(that.pid)
					that.$emit('getnew', '123');
					})
					.catch(function(error) {
						console.log(error);
						that.$Toast('网络拥堵，刷新一下');
					});
			},
			changeall(){
				if(this.choseall){
					for (var i = 0; i < this.list.length; i++) {
						this.list[i].chosesf = true
					}
				}else{
					for (var i = 0; i < this.list.length; i++) {
						this.list[i].chosesf = false
					}
				}
			},
			chosechange(){
				for (var i = 0; i < this.list.length; i++) {
					if(this.list[i].chosesf == true){
						this.choseall=true
					}else{
						this.choseall=false
						break
					}
					
				}
			},
		chosechange2(ind){
			for (var i = 0; i < this.englist.length; i++) {
				this.englist[i].chosesf = false
				
			}
			this.englist[ind].chosesf = true
			this.$forceUpdate()
		},
			// 打开弹窗
			openalert(type,index){
				this.type=type
				console.log(index)
				if(index != undefined){
					this.id=this.list[index].id
					this.parentId=this.list[index].parentId
					this.name = this.list[index].name
					this.remark = this.list[index].remark
					this.hours = this.list[index].dealTime
					this.sorts = this.list[index].score
					this.lowhours = this.list[index].minScore
					console.log(this.name)
				}else{
					this.name=''
					this.remark=''
					this.id=''
					this.hours=''
					this.sorts=0
					this.lowhours=0
					this.parentId=this.pid
				}
				this.alert_show=true
			
			},
			// 表单提交
			sure(e) {
				console.log('表单提交')
				this.name = this.name.trim()
				if(this.list.length > 0 && this.list[0].parentId!=0){
					if (this.name == '' ||  (this.sorts == '' && this.sorts!=0) || (this.lowhours == ''&& this.lowhours!=0)) {
						// 故障类型名称
						this.$Toast("请填写完整");
						return
					}
				}else{
					if (this.name == '') {
						this.$Toast("请填写故障类型名称");
						return
					}
				}
				
				
				if (this.name.length > 20) {
					this.$Toast("故障类型名称过长");
					return
				}
				
				this.showloading = true
				var param = {}
				if(this.type=='add'){
					if(this.list.length > 0 && this.list[0].parentId!=0){
					param = {
						name:this.name,
						remark:this.remark,
						dealTime:this.hours,
						score:this.sorts,
						minScore:this.lowhours,
						parentId:this.parentId?this.parentId:0,
					}
					}else{
						param = {
							name:this.name,
							remark:this.remark,
							parentId:this.parentId?this.parentId:0,
						}
					}
				}else{
					if(this.list.length > 0 && this.list[0].parentId!=0){
						param = {
							name:this.name,
							remark:this.remark,
							dealTime:this.hours,
							score:this.sorts,
							minScore:this.lowhours,
							parentId:this.parentId,
							id:this.id
						}
					}else{
						 param = {
							name:this.name,
							remark:this.remark,
							parentId:this.parentId,
							id:this.id
						 }
					 }
				}	
				var that = this
				// console.log(param)
				this.$http.post(this.$url + '/fault/type/save', this.$qs.stringify(param))
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.$Toast(response.data.msg);
						that.alert_show = false
						that.getlist(that.pid)
						that.$emit('getnew', '123');
					})
					.catch(function(error) {
						console.log(error);
						that.$Toast('网络拥堵，刷新一下');
					});
			},
			handleSizeChange(val) {
		       console.log(`每页 ${val} 条`);
							this.limit = val
							this.choseall = false
							this.getlist(this.pid)
		     },
		     handleCurrentChange(val) {
		       console.log(`当前页: ${val}`);
							this.page = val
				this.choseall = false
							this.getlist(this.pid)
		     },
			 handleSizeChange2(val) {
			    console.log(`每页 ${val} 条`);
			 				this.limit2 = val
			 				this.getenglist()
			  },
			  handleCurrentChange2(val) {
			    console.log(`当前页: ${val}`);
			 				this.page2 = val
			 				this.getenglist()
			  },
			// 点击遮罩层
			close(){
				if(this.alert_show2==true){
					return
				}
				for (var i = 0; i < this.list.length; i++) {
					this.list[i].static=false
				}
				this.showzzc=false
			},
			getlist(id) {
				this.showloading = true
				this.choseall = false

				var that = this
				id = id?id:0
				var url = encodeURI(this.$url + '/fault/type/list?page='+this.page+'&limit='+this.limit+'&name='+this.naes+'&parentId='+id)
				this.$http.get(url)
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.inglen = response.data.data.total
						that.list = response.data.data.records
						console.log(response.data.data.records)
						console.log(response.data.data.records.length)
						if(response.data.data.records.length > 0){
							for (var i = 0; i < that.list.length; i++) {
								that.list[i].chosesf = false
							}
							that.choseall = false
							if (that.inglen > that.limit) {
								that.num = Math.ceil(that.inglen / that.limit)
							} else {
								that.num = 1
							}
						}
						that.$forceUpdate()
						that.showloading = false
					})
					.catch(function(error) {
						console.log(error);
						
						that.$Toast('网络拥堵，刷新一下');
					});

			},
		},

		computed: {},
	}
</script>
<style lang='less' scoped>
	/deep/ .el-pagination__total {
		height: 33px !important;
		line-height: 33px !important;
	}

	/deep/ .el-input--mini .el-input__inner {
		height: 33px;
	}

	/deep/.el-pagination__editor.el-input .el-input__inner {
		height: 33px;
	}

	.page_box {
		display: flex;
		justify-content: flex-end;
		margin-top: 30px;
	}

	/deep/ .el-pagination .btn-prev {
		border: 1px solid #ccc;
		padding: 0;
		border-right: none;
		min-width: 33px;
		height: 33px;
		padding-top: 2px;
	}

	/deep/ .el-pagination .btn-next {
		border: 1px solid #ccc;
		padding: 0;
		border-left: none;
		min-width: 33px;
		height: 33px;
		padding-top: 2px;
	}

	/deep/ .el-pager li {
		border: 1px solid #ccc;
		padding: 0;
		border-right: none;
		min-width: 33px;
		height: 33px;
		line-height: 33px;
	}

	/deep/ .el-pager li:nth-last-of-type(1) {
		border-right: 1px solid #ccc;
	}

	/deep/ .el-pager li.active {
		border: #4286f5 1px solid;
		background: #4286f5;
		color: #fff;
	}

	.prevli {
		background: url(../../../assets/images/titlebg.png) no-repeat;
		background-size: 100% 100%;
		padding-left: 30px;
		padding-right: 35px;
		height: 34px;
		line-height: 34px;
	}

	.search_box {

		margin-top: 5px;
	}

	.pages {
		display: flex;
		justify-content: flex-end;
		margin-top: 10px;
	}

	.buttons {
		display: flex;
		align-items: center;
		justify-content: center;
		padding-bottom: 38px;
	}

	.closebtn {
		width: 89px;
		height: 34px;
		background: #EEEEEE;
		border-radius: 6px;
		font-size: 14px;
		color: #434343;
		text-align: center;
		line-height: 34px;
		cursor: pointer;
	}

	.sure {
		width: 89px;
		height: 34px;
		line-height: 34px;
		background: #4286F5;
		border-radius: 6px;
		font-size: 14px;
		color: #FFFFFF;
		margin-right: 18px;
		text-align: center;
		cursor: pointer;
	}

	.w600 .modal-body.h100 {
		height: 200px;
	}

	.line textarea {
		height: 75px;
	}

	.line input,
	.line select,
	.line textarea {
		width: 360px;
		color: #000;
	}

	.line_title span {
		color: #E65100;
	}

	.line_title {
		font-size: 14px;
		color: #000000;
		line-height: 34px;
		/* text-align: right; */
		white-space: nowrap;
		width: 110px;
	}

	.line {
		display: flex;
		margin: 19px auto 0;
		width: 410px;

	}

	.modal-header.tit {
		font-size: 20px;
		color: #000;
		font-weight: normal;
	}

	.w600 {
		margin: calc(50vh - 165px) auto;
	}

	.tcent {
		text-align: center;
	}

	input[type='checkbox'] {
		opacity: 0;
		position: absolute;
		z-index: -2;
	}

	input[type="checkbox"]+label {
		width: 16px;
		height: 16px;
		border: 1px solid #c8c8c8;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-bottom: 0;
		box-sizing: border-box;
		margin-right: 7px;
	}

	input[type="checkbox"]+label::before {
		content: '';
		display: block;
		margin-bottom: 0;
		box-sizing: border-box;
	}

	input[type="checkbox"]:checked+label {
		border: 1px solid #0075ff;
		box-sizing: border-box;
		background: #0075ff url(../../../assets/images/dui.png) no-repeat;
		background-size: 80% 80%;
		background-position-x: 20%;
		background-position-y: 20%;
	}

	input[type="checkbox"]:checked+label::before {
		background: #0075ff;
	}

	.search_inp {
		width: 260px;
		margin-bottom: 0;
	}

	.title {
		font-size: 24px;
		color: #000000;
	}



	.btns {
		width: 72px;
		padding: 0;
	}

	.zzc {
		width: 100vw;
		height: 100vh;
		position: fixed;
		z-index: 4;
		top: 0;
		left: 0;
	}



	.loading-content {
		position: absolute;
		z-index: 2000;
		/* background-color: rgba(0, 0, 0, 0.8); */
		margin: 0;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		transition: opacity 0.3s;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		/* width: 200px;
		height: 150px;
		border-radius: 10px; */
	}

	.loading-spinner {
		text-align: center;
	}

	.loading-spinner .circular {
		height: 42px;
		animation: loading-rotate 2s linear infinite;
	}

	.loading-spinner .path {
		animation: loading-dash 1.5s ease-in-out infinite;
		stroke-dasharray: 90, 150;
		stroke-dashoffset: 0;
		/* stroke- 2; */
		stroke: #000;
		stroke-linecap: round;
	}

	.loading-text {
		font-size: 14px;
		color: #000;
	}

	@keyframes loading-rotate {
		100% {
			transform: rotate(360deg);
		}
	}

	@keyframes loading-dash {
		0% {
			stroke-dasharray: 1, 200;
			stroke-dashoffset: 0;
		}

		50% {
			stroke-dasharray: 90, 150;
			stroke-dashoffset: -40px;
		}

		to {
			stroke-dasharray: 90, 150;
			stroke-dashoffset: -120px;
		}
	}

	.biaoq {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
	}

	.qx:hover {
		background: #edf3fd;
		color: #4286f5;
	}


	.down {
		background: #fff;
		position: absolute;
		top: 30px;
		right: 0;
		width: 130px;
		text-align: left;
		padding: 0 5px;
		z-index: 5;

		color: #666;
		box-shadow: 0 0 10px rgb(0 0 0 / 20%);

	}

	.li {
		border-bottom: 1px solid #f3f3f3;
		padding-left: 20px;
		height: 40px;
		line-height: 40px;
	}

	.li:nth-last-of-type(1) {
		border-bottom: none;
	}

	.more {
		position: relative;
	}

	.btns .iconfont {
		font-size: 10px;
		transition: all .3s;
		transform: rotateZ(0deg);
		line-height: 26px;
	}

	.actives {
		background: #4286f5;
		color: #fff;
	}

	td,
	th {
		font-size: 14px;
		color: #333;
		/* line-height: 22px; */
		padding: 10px;
		border-top: 0;
		border-bottom: 1px solid #eee;
	}

	.modal {
		position: absolute;
	}

	.modal-dialog {
		height: 97%;
	}

	.modal-header {
		position: sticky;
		top: 0;
		z-index: 50;
	}

	.modal-content {
		/* width: 85%; */
		margin: 0 auto;
		max-height: 100%;
		/* height: 65vh; */
		/* overflow-y: scroll; */
	}

	.cent {
		width: 100%;
		align-items: center;
	}
</style>
